package com.tjp.user.controller;

import com.tjp.bean.Result;
import com.tjp.page.PageResponse;
import com.tjp.user.bo.AuthUserBO;
import com.tjp.user.convert.AuthUserBoConvert;
import com.tjp.user.dto.AuthUserDTO;
import com.tjp.user.service.AuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.concurrent.TimeUnit;

/**
 * @program: ape-frame
 * @description: 用户vc
 * @author: aaronTang
 * @create: 2024-05-17
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private AuthUserService authUserService;

    @Autowired
    private RedisTemplate redisTemplate;


    @GetMapping("/testRedis")
    public String testRedis() {
        redisTemplate.opsForValue().set("key", "value", 2, TimeUnit.SECONDS);
        return "hello redis";
    }
}
